#ifndef PLAYER_WIDGET_HPP
#define PLAYER_WIDGET_HPP
#include <QWidget>
#include <QVBoxLayout>
#include <QLabel>
#include <QTimer>
#include <ros/ros.h>
#include <std_msgs/String.h>
#include "config.hpp"
class PlayerWidget : public QWidget
{
    Q_OBJECT
public:
    explicit PlayerWidget(QWidget *parent = nullptr);
    ~PlayerWidget();
private slots:
    void updateROS();
private:
    void setupUI();
    void setupROS();
    QVBoxLayout *mainLayout;
    QLabel *titleLabel;
    QLabel *configLabel;
    QLabel *rosStatusLabel;
    ros::NodeHandle *nh;
    ros::Publisher commandPub;
    QTimer *rosTimer;
    bool rosConnected;
};
#endif